package org.will.ddd.eventing;

import org.will.cqrs.event.Event;

/**
 * Created by EdifierWill on 2016/8/10.
 */
public abstract class DomainEvent<TAggregateRootId> extends Event implements  IDomainEvent<TAggregateRootId> {

    TAggregateRootId _id;
    int _version;

    public TAggregateRootId getAggregateRootId()
    {
        return this._id;
    }

    public void setAggregateRootId(TAggregateRootId id)
    {
        this._id = id;
    }

    public int getVersion()
    {
        return this._version;
    }
    public void setVersion(int version)
    {
        this._version = version;
    }
}
